package system;

/**
 * Created by ZhuQianli on 2018/1/17.
 */
public class App {

    public static void main(String[] args) throws InterruptedException {

        // 1000纳秒 == 1微秒    1000微秒 == 1毫秒   1000毫秒 == 1秒

        long naoTime = System.nanoTime(); // 纳秒
        long currentTimeMillis = System.currentTimeMillis(); // 毫秒
        Thread.sleep(1000);
        System.out.println(System.nanoTime() - naoTime);
        System.out.println(System.currentTimeMillis() - currentTimeMillis);


    }
}
